package com.nageoffer.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.admin.pojo.dto.req.ShortLinkGroupSortReqDTO;
import com.nageoffer.shortlink.admin.pojo.dto.req.ShortLinkGroupUpdateDTO;
import com.nageoffer.shortlink.admin.pojo.dto.req.ShortLinkGroupSaveReqDTO;
import com.nageoffer.shortlink.admin.pojo.dto.resp.ShortLinkGroupRespDTO;
import com.nageoffer.shortlink.admin.pojo.entity.Group;

import java.util.List;

public interface GroupService extends IService<Group> {
    void saveGroup(ShortLinkGroupSaveReqDTO requestParam);
    void saveGroup(String userName,ShortLinkGroupSaveReqDTO requestParam);

    List<ShortLinkGroupRespDTO> listGroup();

    void update(ShortLinkGroupUpdateDTO requestParam);

    void delete(String gid);

    void sortGroup(List<ShortLinkGroupSortReqDTO> requestParam);
}
